//
//  VideoCommandView.h
//  ijkPlayer
//
//  Created by apple on 2018/5/13.
//  Copyright © 2018年 锦. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BrightnessVolumeView.h"

@protocol VideoCommandViewDelegate <NSObject>
/**
 播放按钮回调
 */
-(BOOL)VideoCommandViewPlayButtonClicked;
/**
 横竖屏回调
 */
-(void)VideoCommandViewChangeFrameButtonClicked;
/**
 slider拖动回调
 */
-(void)VideoCommandViewSliderDragingWithTime:(CGFloat )time;
/**
 slider拖动结束回调
 */
-(void)VideoCommandViewSliderDragEndWithTime:(CGFloat )time;
/**
 速率
 */
-(void)VideoCommandViewSetRate:(CGFloat )rate;
/**
 快进快退回调
 */
-(void)VideoCommandViewWithVideoTime:(CGFloat )time;
/**
 截图按钮回调
 */
-(void)VideoCommandViewscreenshotClicked;
/**
 gif按钮回调
 */
-(BOOL)VideoCommandViewGifButtonClicked;
@end

@interface VideoCommandView : UIView
@property (nonatomic, weak)id<VideoCommandViewDelegate>commandDelegate;
/**
 拖动条
 */
@property (weak, nonatomic) IBOutlet UISlider *videoSlider;
/**
 判断是否拖动
 */
@property (nonatomic, assign)BOOL isMediaSliderBeingDragged;
/**
 是否横屏
 */
@property (nonatomic,assign)BOOL _isFullScreen;
/**
 更新slider和label值
 */
-(void)refreshSliderValueWithTime:(CGFloat )time;
/**
 赋值slider和视频总时长
 */
-(void)setVideoTotalTime:(CGFloat )time;
/**
 显示隐藏ToolView
 */
-(void)setCommandToolViewHidden:(BOOL )hidden withSmallState:(BOOL )isSmall;
/**
 播放按钮
 */
-(void)setPlayButtonState:(BOOL )isPlaying;
/**
 更换视频后还原属性:现在为速率值还原为1
 */
-(void)forNewVideo;
/**
 设置gifBtn
 */
-(void)setGifButtonSelectState:(BOOL )selected;

-(void)setPointWithSlider:(NSArray *)array;
@end
